﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Relocation.UI.Relocate
{
    public partial class PrintSelectWindow : Form
    {
        /// <summary>
        /// 导出方式
        /// </summary>
        public PrintTypes PrintType { get; private set; }

        /// <summary>
        /// 选择导出方式（地等项目公示表、明细）
        /// </summary>
        public PrintSelectWindow()
        {
            InitializeComponent();
        }

        private void Button_OK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.PrintType = this.RadioButton_Detail.Checked ? PrintTypes.Detail : PrintTypes.Project;
        }

        private void Button_Cancle_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;            
        }

        public enum PrintTypes:short
        {
            /// <summary>
            /// 明细
            /// </summary>
            Detail,
            /// <summary>
            /// 地等项目公示表
            /// </summary>
            Project
        }
    }
}
